package com.acme.bankapp.domain.bank;

/**
 * Created by Student on 18.08.2014.
 */
public class Client {

    private Account account;
    private String name;
    private Gender gender;

    public Client(String name, Gender gender, Account account) {
        this.account = account;
        this.name = name;
        this.gender = gender;
    }

    public Client(Account account) {
        this.account = account;
        this.name = "Smith";
        this.gender=Gender.MALE;
    }

    public String getName() {
        return name;
    }

    public String getSalutation() {
        return gender.salutation;
    }

    public Account getAccounts() {
        return account;
    }

    @Override
    public String toString() {
        return gender.salutation + name;
    }
}

